package com.hh.feign;

import com.hh.entity.Prod;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 辉辉 2022/8/18 16:02
 */
@FeignClient(value = "product-service")
public interface IndexImgProdFeign {

    /**
     * 根据id查询商品信息
     * @param prodId
     * @return
     */
    @GetMapping("/prod/prod/findProdById/{id}")
    Prod findProdByProdId(@PathVariable("id") Long prodId);
}
